import request from '@/utils/request.js'
import qs from 'qs'

export const loginAPI = function (loginForm) {
  return request.post('/login', qs.stringify(loginForm))
}

export const pwdAPI = function (pwdForm) {
  return request.post('/updatepwd', qs.stringify(pwdForm))
}

export const usernameAPI = function (pwdForm) {
  return request.post('/username', qs.stringify(pwdForm))
}

export const allcourseAPI = function () {
  return request.post('/allcourse')
}
